import {Modal} from "antd";
import {createContext} from "react";

interface Props {
    modelType: string,
    title: string,
    value: string,
    ActonInner: JSX.Element,
    textColor: string
}

// 创建上下文
const ReachableContext = createContext<string | null>(null);
//
const ModelTip = (props: Props) => {
    const {value = "确认操作？", modelType = "confirm", title = "操作提示", ActonInner} = props;
    // 获取modal实例
    const [modal, contextHolder] = Modal.useModal();
    return (
        <ReachableContext.Provider value={value}>
            
        </ReachableContext.Provider>
    )
}

export default ModelTip;
